/* 
 * File:   Pile.h
 * Author: Gab'z
 *
 * Created on 30 avril 2012, 13:36
 */

#ifndef PILE_H
#define	PILE_H
#include <stack>
#include "Contexte.h"
#include "Constante.h"
#include "ElementContexte.h"
namespace calculatrice {

    namespace MODEL {

        class Pile : public ElementContexte {
        public:
            Pile();
            Pile(const Pile& orig);
            virtual ~Pile();
            void empiler(const Constante& c);
            void depiler();
            const Constante& first();
            Pile* clone() const;
        private:
            std::stack<Constante> pile;

        };
    }
}
#endif	/* PILE_H */

